#coding=gbk

import os,re

str1 = 'ababaaaabbbvsdfavvb'

m = re.finditer('(ab)',str1)
m2 = re.findall('(ab)',str1)
print m2

for mt in m:
    print mt.start()


